/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package pacificlms.Verifiable.Database;

/**
 *
 * @author Brian Hume
 */
/*public enum MemberType {
    
    NonMember("Banned", "nonmember"), Student("Student", "student"), Faculty("Faculty", "faculty"), Librarian("Librarian", "librarian");
    
    private String ApplicationValue;
    private String DBValue;
    private MemberType(String ApplicationValue, String DBValue)
    {
        this.ApplicationValue = ApplicationValue;
        this.DBValue = DBValue;
    }
}*/

        import pacificlms.Verifiable.*;

/**
 *
 * @author Brian Hume
 */
public class MemberType extends VerifiableObject {
    
    @Override
    public String TableName() {
        return "MemberType";
    }
    
    
    private String Type;
    @VerifyAnnotation(ApplicationName="Type", DBName="Type",  Type=TypeEnum.STRING, Length=20, PrimaryKey=true)
    public String Type(String value)
    {
        return Type = StandardProcess(Type, value);
    }
    
    
    //Do not need to worry about verification since CheckOutRule are not be saved by the program
    @Override
    protected boolean ExtraVerification()
    {
        return true;
    }
    
    
    @Override
    public String toString()
    {
        return Type;
    }
}
